package b_utils;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;

public class JDBCDemo {
    public static void main(String[] args) {
        Connection conn = null;
        Statement sta = null;
        try {
             conn = JDBCUtils.getConnection();
             sta = conn.createStatement();
             String sql = "select * from emp";
             boolean execute = sta.execute(sql);
             System.out.println(execute);
        } catch (SQLException e) {
            throw new RuntimeException(e);
        }finally {
            JDBCUtils.close(conn,sta);
        }
    }
}
